package com.serie402.common.delegate;

import com.kiss.fw.delegate.AbstractDelegate;
import com.kiss.fw.exceptions.BusinessException;
import com.serie402.common.dto.NewsDTO;

public class NewsDelegate extends AbstractDelegate {
	private NewsDelegate() {
	}
	
	/**
	 * Creates the news specified.
	 * 
	 * @param NewsDTO _dto
	 * @throws BusinessException
	 */
	public static void create(NewsDTO _dto) throws BusinessException {
		executeCommand("CreateNews", _dto);
	}
	
	/**
	 * Retrieves the news specified.
	 * 
	 * @param NewsDTO _dto
	 * @throws BusinessException
	 */
	public static void read(NewsDTO _dto) throws BusinessException {
		executeCommand("ReadNews", _dto);
	}
	
	/**
	 * Updates the news specified.
	 * 
	 * @param NewsDTO _dto
	 * @throws BusinessException
	 */
	public static void update(NewsDTO _dto) throws BusinessException {
		executeCommand("UpdateNews", _dto);
	}
	
	/**
	 * Deletes the news specified.
	 * 
	 * @param NewsDTO _dto
	 * @throws BusinessException
	 */
	public static void delete(NewsDTO _dto) throws BusinessException {
		executeCommand("DeleteNews", _dto);
	}
	
	/**
	 * Searches for the specified news.
	 * 
	 * @param NewsDTO _dto
	 * @throws BusinessException
	 */
	public static void search(NewsDTO _dto) throws BusinessException {
		executeCommand("SearchNews", _dto);
	}
}